WINDOW

Syntax: WINDOW [#ch,] x, y, posx, posy     
    or: WINDOW [#ch,] x, y, posx, posy [\border]
        (Minerva v1.79+, THOR XVI)
Location: QL ROM, Minerva, THOR XVI

This command redefines the given screen window (default #1) by specifying the new size and position of the window. The values must all be calculated in the pixel co-ordinate system.

On a standard QL resolution screen (ie. 512x256 pixels), due to the shape of the screen, a window which measures 100x100 pixels will not appear square.

The Minerva and THOR XVI variants allow you to specify a border to be drawn around the window at the same time, by the addition of up to a further four parameters in the form:  

[\border_size [,colour [,colour2 [,stipple ]]]]

This therefore allows you to combine the WINDOW and BORDER commands. For example,        

WINDOW 448,200,32,16\2,2

MINERVA NOTE:
In a MultiBasic, both channel #0 and #1 are inextricably linked. Unfortunately, this means that in certain cases both channel #0 and channel #1 must have the same size and position: any attempt to re-size #0 will re-size #1 and vice versa. See the MultiBasic appendix for further details.

CROSS-REFERENCE:
OPEN allows you to open a window ready for use.
BORDER allows you to set an implicit border.
